package com.example.dell.wisdom_farm.pojo;


import android.os.Parcel;
import android.os.Parcelable;

public class Sensor {

    private String sensorNama;
    private  String dataUnit;
    private  Double data;

    public String getSensorNama(){
        return sensorNama;
    }

    public void  setSensorNama(String sensorNama){
        this.sensorNama=sensorNama;
    }

    public String getDataUnit(){
        return  dataUnit;
    }

    public Double  getData() {
        return data;
    }

    public void setData(Double  data) {
        this.data = data;
    }

    public void setDataUnit(String dataUnit) {
        this.dataUnit = dataUnit;
    }

    public Sensor(String sensorNama, String dataUnit, Double  data)
    {
        this.sensorNama=sensorNama;
        this.dataUnit=dataUnit;
        this.data=data;
    }
    protected Sensor(Parcel in){
        sensorNama=in.readString();
        dataUnit=in.readString();
        data=in.readDouble();
    }
    public static final Parcelable.Creator<Sensor> CREATOR=new Parcelable.Creator<Sensor>() {
        @Override
        public Sensor createFromParcel(Parcel source) {
            return new Sensor(source);
        }

        @Override
        public Sensor[] newArray(int size) {
            return new Sensor[0];
        }
    };












}
